package initialize

import (
	"github.com/gin-gonic/gin"
	"go-backend-simple-scaffold/api/route"
	"go-backend-simple-scaffold/global"
)

func RunHttpServer() {
	gin := gin.Default()
	// 设置路由
	route.Setup(gin)
	global.GBSS_LOG.Warn("脚手架HTTP服务已经启动成功：" + global.GBSS_CONFIG.System.Addr)
	gin.Run(global.GBSS_CONFIG.System.Addr)
}
